<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../scripts/itsm/user/userMain.js"></script>
</head>
<body>
<div id="userMainGridToolbar" style="padding: 0px;display: none;">
&nbsp;<a onclick="itsm.user.userMain.openAddWin()" class="easyui-linkbutton" id="userMainGrid_add" icon="icon-add" plain="true">添加</a>
<a onclick="itsm.user.userMain.openEditWin()" class="easyui-linkbutton" id="userMainGrid_edit" icon="icon-edit" plain="true">修改</a>
<a onclick="itsm.user.userMain.deleteUser()" class="easyui-linkbutton" id="userMainGrid_del" icon="icon-cancel" plain="true">删除</a>
<a onclick="itsm.user.userMain.openSearchWin()" class="easyui-linkbutton" id="userMainGrid_search" icon="icon-search" plain="true">搜索</a>
</div>
<table id='userMainGrid'></table>
<div id='userMainPager'></div>

<%-- 添加、编辑 --%>
<div title="添加/编辑用户 " id="userMain_add_win" class="easyui-window" closed="true" collapsible="false" modal="true" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="userMain_add_form">	
	<input name="userDTO.userId" id="userMain_userId" type="hidden" />
	<table>
		<tr>
			<td>管理员角色</td>
			<td>
				<select name="userDTO.userRole" id="userMain_userRole">
					<option value="admin1">管理员1</option>
					<option value="admin2">管理员2</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>登录名</td>
			<td><input name="userDTO.loginName" id="userMain_loginName"  class="easyui-validatebox input" required="true"/></td>
		</tr>
		<tr>
			<td>密码</td>
			<td><input type="password" name="userDTO.password" id="userMain_password"  class="easyui-validatebox input" required="true"/></td>
		</tr>
		<tr>
			<td>管理密码</td>
			<td><input type="password" name="userDTO.systemPassword" id="userMain_systemPassword"  class="easyui-validatebox input" required="true"/></td>
		</tr>
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" id="link_user_save" href="javascript:itsm.user.userMain.saveUser()">保存</a>
			</td>
		</tr>
	</table>
	</form>
</div>

<%-- 搜索  --%>
<div title="用户搜索 " id="userMain_search_win" class="easyui-window" closed="true" collapsible="false" modal="false" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="userMain_search_form">	
	<table>
		<tr>
			<td>登录名</td>
			<td><input name="userDTO.loginName" class="input" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" href="javascript:itsm.user.userMain.searchUser()">搜索</a>
			</td>
		</tr>
	</table>
	</form>
</div>


</body>
</html>